<%@ page language="java" pageEncoding="UTF-8"%>
<div class="panel panel-default" ng-controller="BlogCatalogShowController">
	<div class="panel-heading">
		目录管理
		<span class="pull-right">
			<button type="button" class="btn btn-default btn-sm" ng-click="create()"><i class="glyphicon glyphicon-plus-sign"></i> 添加</button>
		</span>
	</div>
	<div class="panel-body">
		<table class="table table-hover">
			<thead>
				<tr>
					<th>
						ID
					</th>
					<th>
						名称
					</th>
					<th>
						数量
					</th>
					<th>
						创建时间
					</th>
					<th>
						操作
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="catalog in catalogs">
					<td>
						{{catalog.id}}
					</td>
					<td>
						{{catalog.name}}
					</td>
					<td>
						{{catalog.count}}
					</td>
					<td>
						{{catalog.create_time | formatDate}}
					</td>
					<td>
						<button type="button" class="btn btn-success btn-xs" ng-click="edit(catalog)"><i class="glyphicon glyphicon-edit"></i> 编辑</button>
						<button type="button" class="btn btn-danger btn-xs" ng-click="remove(catalog)"><i class="glyphicon glyphicon-remove"></i> 编辑</button>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>